import CrudService from '../global/CrudService'

let instance = null

// 后端路径 /rest/projectFollow/queryList
const prefix = '/projectFollow'

class Service extends CrudService {
  constructor() {
    super(prefix)
	  this.getListPath = `${prefix}/queryList`
	  // this.addPath = `${prefix}/doTemplateInsert`
	  // this.deletePath = `${prefix}/doTemplateDelete`
	  // this.updatePath = `${prefix}/doTemplateUpdate`
    return instance || this
  }

  static getInstance() {
    if (!instance) {
      instance = new Service()
    }
    return instance
  }

  copy(){
    return this.post(`${prefix}/`)
  }
}

export default Service.getInstance()
